﻿namespace Net.AI
{
    public class MeshData
    {
        public int vertexCount;
        public int[] triangles;
        public Vector3[] vertices;

        public MeshData() { }

        public MeshData(UnityEngine.Mesh mesh)
        {
            vertexCount = mesh.vertexCount;
            triangles = mesh.triangles;
            vertices = new Vector3[mesh.vertices.Length];
            for (int i = 0; i < vertices.Length; i++)
                vertices[i] = mesh.vertices[i];
        }
    }
}